﻿/* Flip Scroll */

@media only screen and (max-width: 800px)
{
    #flip-scroll .cf:after
    {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
    #flip-scroll * html .cf
    {
        zoom: 1;
    }
    #flip-scroll *:first-child + html .cf
    {
        zoom: 1;
    }
    #flip-scroll table
    {
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
    }
    #flip-scroll table tbody tr
    {
        width: 50.5%;
    }
    #flip-scroll th, #flip-scroll td
    {
        margin: 0;
        vertical-align: top;
    }

    #flip-scroll table
    {
        display: block;
        position: relative;
        width: 100%;
    }
    #flip-scroll thead
    {
        display: block;
        float: left;
    }
    #flip-scroll tbody
    {
        display: block;
        width: auto;
        position: relative;
        overflow-x: auto;
        white-space: nowrap;
    }
    #flip-scroll thead tr
    {
        display: block;
    }
    #flip-scroll th
    {
        display: block;
        font-size: 11px;
        height: 35px;
    }
    #flip-scroll tbody tr
    {
        display: inline-block;
        vertical-align: top;
    }
    #flip-scroll td
    {
        line-height: 1.42857;
        display: block;
        min-height: 1.25em;
        text-align: center;
        font-size: 11px;
        margin-right: -5px;
        border-top: 0 none;
    }
    #flip-scroll td span
    {
        bottom: 2px;
        height: 22px !important;
    }
    .table-bordered > thead > tr > th, .table-bordered > thead > tr > td
    {
        border-bottom-width: 1px;
    }
    .table-bordered
    {
        border: 0 none;
    }

}
/* sort out borders */

#flip-scroll th
{
    border-left: 0;
    overflow: hidden;
    width: auto !important;
}
#flip-scroll td
{
    border-left: 0;
    height: auto;
    overflow: hidden;
}
div.dataTables_info
{
    font-size: 12px;
    margin-left: 5px;
}
/*
#flip-scroll tbody tr:not(.trfc)
{
    width: 39.9%;
}*/

/* Unseen Column */

@media only screen and (max-width: 800px)
{
    #unseen table td:nth-child(2), #unseen table th:nth-child(2)
    {
        display: none;
    }
}

@media only screen and (max-width: 640px)
{
    #unseen table td:nth-child(4), #unseen table th:nth-child(4), #unseen table td:nth-child(7), #unseen table th:nth-child(7), #unseen table td:nth-child(8), #unseen table th:nth-child(8)
    {
        display: none;
    }
}

/* No more Tables */
@media only screen and (max-width: 800px)
{
    #no-more-tables table, #no-more-tables thead, #no-more-tables tbody, #no-more-tables th, #no-more-tables td, #no-more-tables tr
    {
        display: block;
    }

    #no-more-tables thead tr
    {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    #no-more-tables tr
    {
        border: 1px solid #ccc;
    }

    #no-more-tables td
    {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        white-space: normal;
        text-align: left;
    }

    #no-more-tables td:before
    {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }

    #no-more-tables td:before
    {
        content: attr(data-title);
    }
}


@media only screen and (max-width:360px)
{
    #hnq table
    {
        position: relative;
        display: block;
        border-collapse: collapse;
        border-spacing: 0;
    }

    #hnq table tbody
    {
        display: block;
        overflow-x: auto;
        position: relative;
        width: auto;
    }

    #hnq table tbody tr
    {
        float: left;
        width: 100%;
    }

    #hnq table tbody tr td
    {
        border-bottom: 0 none;
        overflow: hidden;
        width: 100%;
        display: block;
        line-height: 1.42857;
        margin-right: -5px;
        min-height: 1.25em;
        text-align: center;
    }

    #hnq table tbody tr td input
    {
        width: 100% !important;
    }

    #hnq table tbody tr:last-child td:last-child
    {
        border-bottom: 1px solid #ddd;
    }

    .input-group
    {
        width: 100%;
    }
    .remove-width
    {
        width: 1% !important;
    }
    select.select-default
    {
        width: auto !important;
    }
    .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td
    {
        white-space: normal !important;
    }
}
